home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2004 E…tra 100 Bedste Programmer / K-CD_2004_Ekstra_100_Gratis_Programmer.iso / Windows / X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT NTFS-MFT 1.xpl < prev    next >
Encoding:
XSetup plugin  |  2004-01-15  |  3.3 KB  |  83 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="4"
  4. "UIPATH"="System\File System\Windows NT/2K/XP Options"
  5. "NAME"="Windows Master File Table Allocation"
  6. "VERSION"="2.01"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="OS default value, use ~12.5% of disk size for MFT"
  11. "TEXT 2"="Use ~25% of disk size for MFT"
  12. "TEXT 3"="Use ~37.5% of disk size for MFT"
  13. "TEXT 4"="Use ~50% of disk size for MFT (very big MFT)"
  14. "DESCRIPTION 1"="In Windows NT (with SP6) and above you can control how much space for the MFT (Master File Table) is reserved."
  15. "DESCRIPTION 2"="For each file and folder NTFS uses, an entry is created inside the MFT. This allows NTFS to located the objects very fast."
  16. "DESCRIPTION 3"="However, only a MFT that is in one block is really fast. If you copy many small images to this computer, the normal MFT space is properly to small, so the MFT is continued on a different location on the hard disk."
  17. "DESCRIPTION 4"="This is not a problem because the computer still works, but any request to a file takes much longer because now NTFS needs to seek for two MFT "block" and reads both (for every file access!). In this example, a big MFT would be a good idea so it is keeped in one block."
  18. "DESCRIPTION 5"="On the other hand, if you only have some very huge database files on this computer, a huge MFT is not a good idea since every file request takes longer than needed (the MFT is allways read completely). That's because there are only few files on the disk and the MFT could be small."
  19. "DESCRIPTION 6"="Unfortunately, Microsoft didn't specifies this setting in detail, so the only chance is to play around with this settings and check the performance of the computer after you have changed this setting and rebooted."
  20. "AUTHOR"="Xteq Systems"
  21. "CONTACTURL"="http://www.xteq.com/"
  22. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  23. "COMMENT 1"="see MS KB Q174619"
  24. "COMMENT 2"="Thanks to http://eric.jesover.net for the vice versa bug notice!"
  25. "COMMENT 3"="See also: http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/reskit/prkc_fil_xhpo.asp"
  26. "COMMENT 4"="Thanks to eugenu for the new information and idea!"
  27.  
  28.  
  29.  
  30.  
  31.  
  32. sP="HKLM\System\CurrentControlSet\Control\FileSystem\NtfsMftZoneReservation"  'DW
  33.  
  34. 'Called when the Plugin is started
  35. SUB Plugin_Initialize
  36.     i=RegReadValue(sP)
  37.  
  38.     if IsEmpty(i) then
  39.        SetUIElement 1,true
  40.     else
  41.        if i="1" then SetUIElement 1,true
  42.        if i="2" then SetUIElement 2,true
  43.        if i="3" then SetUIElement 3,true
  44.        if i="4" then SetUIElement 4,true
  45.     end if
  46. END SUB
  47.  
  48. 'Called when the Plugin should validate the Data the user has entered
  49. SUB Plugin_CheckData(ElementIndex)
  50. END SUB
  51.  
  52. 'Called when the Plugin should apply the changes
  53. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  54.  if GetUIElement(1)=true then
  55.     If RegValueExists(sP) then RegDeleteValue(sP)
  56.     s=""
  57.  else
  58.     if GetUIElement(2)=true then
  59.        s="2"
  60.     else
  61.        if GetUIElement(3)=true then
  62.           s="3"
  63.        else
  64.           if GetUIElement(4)=true then
  65.              s="4"
  66.           end if
  67.        end if
  68.  
  69.     end if
  70.  end if
  71.  
  72.  if len(s)>0 then
  73.     Call RegWriteValue(sP,s,1)
  74.  end if 
  75.  
  76.  Call Restart()
  77. END SUB
  78.  
  79. 'Called when the Plugin is about to be removed from memory
  80. SUB Plugin_Terminate
  81.  
  82. END SUB
  83.